#include "CodeGenerator.h"

#include <stdio.h>

#include <QString>
#include <QApplication>

int main( int argc, char** argv )
{
	char xmlMappingFilePath[200];
	char classDestinationPath[200];

	printf( "\n----BlackBear - Code Generator----\n" );
	
	printf( "\n>Xml Mapping File Path:" );
	scanf( "%[^\n]", xmlMappingFilePath );
	fflush( stdin );

	printf( "\n>Classes Destination Path:" );
	scanf( "%[^\n]", classDestinationPath );
	fflush( stdin );

	printf( "\n" );

	CodeGenerator* generator = CodeGenerator::instance();
	generator->generateClasses( QString( xmlMappingFilePath ), QString( classDestinationPath ) );

	return 0;
}